#include <string>
#include <iostream>
using namespace std;

// Demonstration of basic string operations

int main()
{
    string s = "Hello!";
    s.pop_back();      // Remove the last character of the string
    cout << s << endl; // s originally contains "Hello!", after pop_back() it becomes "Hello".
    return 0;
}
